package com.yanghui.dtracing.core;

import lombok.*;

@Getter
@Setter
@ToString
@EqualsAndHashCode(exclude = {"className"})
@AllArgsConstructor
public class PluginDefine {

    private String name;
    private String className;

    public static PluginDefine build(String define){
        String[] pluginDefineArr = define.split("=");
        if(pluginDefineArr.length !=2){
            return null;
        }
        String name = pluginDefineArr[0];
        String className = pluginDefineArr[1];
        return new PluginDefine(name,className);
    }
}
